gtktexthandle: Update to gtk4 rendering/input
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 12 Jun 2018 10:33:03 +0000 (12:33 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 21 Jun 2018 10:54:03 +0000 (12:54 +0200)
commitb3e91b7111f5b46a9165b03d0fc37080358c93e4
treeb034790b185f28b4df0deb3d9296afac1bae4cb7
parentffd89d29dfe7c07420e4eea289e21165bc8a0648
gtktexthandle: Update to gtk4 rendering/input

GtkTextHandle was neglected by whoever removed the ::draw signal,
leaving it entirely broken. Update to using GtkGizmo so we can
implement snapshot of text handles.

Input has received a revamp too, handling is done through a
GtkGestureDrag and coordinate calculations simplified by storing
the delta to the hotspot on ::begin instead of ::update, as this
value is constant throughout the gesture. Widget state management
on crossing events happens implicitly, so no longer needs to be
done here.

Last but not least, CSS has also been updated so handles are
rendered at the correct size and proportion, and with the padding
that code expects of it.
gtk/gtktexthandle.c
gtk/theme/Adwaita/_common.scss